<template>
  <div class="gi_page">
    <section class="result-box">
      <a-result status="error" title="操作失败">
        <template #subtitle>表单提交失败，请重试</template>
        <template #extra>
          <a-space>
            <a-button size="medium">回到首页</a-button>
            <a-button type="primary" size="medium">返回修改</a-button>
          </a-space>
        </template>
        <a-row justify="center">
          <a-typography class="result-box__info">
            <a-typography-paragraph>您提交的内容有如下错误：</a-typography-paragraph>
            <ul>
              <li>
                <icon-exclamation-circle-fill :size="16" style="color: rgb(var(--warning-5))" />
                <span>认证照片不够清晰</span>
                <a-link>立即修改</a-link>
              </li>
              <li>
                <icon-exclamation-circle-fill :size="16" style="color: rgb(var(--warning-5))" />
                <span>你的用户不具有此操作权限</span>
                <a-link>立即修改</a-link>
              </li>
            </ul>
          </a-typography>
        </a-row>
      </a-result>
    </section>
  </div>
</template>

<script setup lang="ts">
defineOptions({ name: 'ResultFail' })
</script>

<style lang="scss" scoped>
.result-box {
  box-sizing: border-box;
  padding: 30px;
  background-color: var(--color-bg-1);

  &__info {
    box-sizing: border-box;
    width: 100%;
    max-width: 500px;
    padding: 24px;
    font-size: 12px;
    background: var(--color-fill-2);

    ul>li {
      display: flex;
      column-gap: 8px;
      align-items: center;

      :deep(.arco-link) {
        font-size: inherit;
      }
    }
  }
}
</style>
